package com.artifact.mit.mypoint.service.model.api;

import java.io.Serializable;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public class News implements Serializable {
	private static final long serialVersionUID = 5429136152064203020L;

	@JsonProperty(value = "Token")
	private String token;
	
	@JsonProperty(value = "News")
	private NewsDetail[] newsDetail;
	
	@JsonIgnoreProperties(ignoreUnknown = true)
	public static class NewsDetail {
		
		public NewsDetail() {}
		
		@JsonProperty(value = "ID")
		private String id;
		
		@JsonProperty(value = "Title")
		private String title;
		
		@JsonProperty(value = "Headline")
		private String headLine;
		
		@JsonProperty(value = "News")
		private String news;
		
		@JsonProperty(value = "UrlImage")
		private String urlImage;

		public String getId() {
			return id;
		}

		public void setId(String id) {
			this.id = id;
		}
		
		public String getTitle() {
			return title;
		}

		public void setTitle(String title) {
			this.title = title;
		}

		public String getHeadLine() {
			return headLine;
		}

		public void setHeadLine(String headLine) {
			this.headLine = headLine;
		}

		public String getNews() {
			return news;
		}

		public void setNews(String news) {
			this.news = news;
		}

		public String getUrlImage() {
			return urlImage;
		}

		public void setUrlImage(String urlImage) {
			this.urlImage = urlImage;
		}
		
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public NewsDetail[] getNewsDetail() {
		return newsDetail;
	}

	public void setNewsDetail(NewsDetail[] newsDetail) {
		this.newsDetail = newsDetail;
	}
}
